
// 不作为Main组件的子页面展示的页面单独写，如下
export const loginRouter = {
    path: '/login',
    name: 'login',
    component: () => import('@/components/Login.vue')
};

export const page404 = {
    path: '/*',
    name: 'error-404',
    meta: {
        title: '404-页面不存在'
    },
    component: () => import('@/components/error-page/404.vue')
};

export const page403 = {
    path: '/403',
    meta: {
        title: '403-权限不足'
    },
    name: 'error-403',
    component: () => import('@/components/error-page/403.vue')
};

export const page500 = {
    path: '/500',
    meta: {
        title: '500-服务端错误'
    },
    name: 'error-500',
    component: () => import('@/components/error-page/500.vue')
};

// 作为Main组件的子页面展示并且在左侧菜单显示的路由写在appRouter里
export const appRouter = [
    {
        path: '/',
        name: 'navbar',
        component: () => import('@/components/cecurio/navbar/NavBar.vue')
    },
    {
        path: '/tabs',
        name: 'sktabs',
        component: () => import('@/components/cecurio/tabs/Tabs.vue')
    },
    {
        path: '/table',
        name: 'table',
        component: () => import('@/components/sunwujun/table/Table.vue')
    },{
        path: '/tree',
        name: 'tree',
        component: () => import('@/components/sunwujun/tree/Tree.vue')
    },{
        path: '/loading',
        name: 'loading',
        component: () => import('@/components/sunwujun/loading/Loading.vue')
    },{
        path: '/menu',
        name: 'menu',
        component: () => import('@/components/sunwujun/menu/Menu.vue')
    },{
        path: '/AButton',
        name: 'AButton',
        component: () => import('@/components/sotyoyo/button/AButton.vue')
    },{
        path: '/ACheckbox',
        name: 'ACheckbox',
        component: () => import('@/components/sotyoyo/checkbox/ACheckbox.vue')
    },{
        path: '/ADate',
        name: 'ADate',
        component: () => import('@/components/sotyoyo/date/ADate.vue')
    },{
        path: '/AFile',
        name: 'AFile',
        component: () => import('@/components/sotyoyo/file/AFile.vue')
    },{
        path: '/ALayout',
        name: 'ALayout',
        component: () => import('@/components/sotyoyo/layout/ALayout.vue')
    },{
        path: '/AModal',
        name: 'AModal',
        component: () => import('@/components/sotyoyo/modal/AModal.vue')
    },{
        path: '/ANotice',
        name: 'ANotice',
        component: () => import('@/components/sotyoyo/notice/ANotice.vue')
    },{
        path: '/ARadio',
        name: 'ARadio',
        component: () => import('@/components/sotyoyo/radio/ARadio.vue')
    },{
        path: '/ASelect',
        name: 'ASelect',
        component: () => import('@/components/sotyoyo/select/ASelect.vue')
    },{
        path: '/ASwitch',
        name: 'ASwitch',
        component: () => import('@/components/sotyoyo/switch/ASwitch.vue')
    },{
        path: '/AText',
        name: 'Atext',
        component: () => import('@/components/sotyoyo/text/AText.vue')
    },{
        path: '/APoptip',
        name: 'APoptip',
        component: () => import('@/components/sotyoyo/poptip/APoptip.vue')
    },{
        path: '/ATextarea',
        name: 'ATextarea',
        component: () => import('@/components/sotyoyo/textarea/ATextarea.vue')
    },


    // 在此添加更多路由

];

// 所有上面定义的路由都要写在下面的routers里
export const routers = [
    loginRouter,
    page403,
    page500,
    ...appRouter,
    page404
];

